﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace Brain
{
    public static class EffectUtil
    {
        public static Dictionary<string, EffectParameter> GetSemantics(Effect fx)
        {
            Dictionary<string, EffectParameter> semantics = new Dictionary<string, EffectParameter>();
            for (int i = 0; i < fx.Parameters.Count; i++)
            {
                EffectParameter par = fx.Parameters[i];
                semantics.Add(par.Semantic.ToLower(), par);
            }

            return semantics;
        }
    }
}
